package cn.dream.ebag.MessengerLib.constants;


import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @ProjectName: MessengerServer
 * @Package: cn.dream.baselibrary
 * @Author: qktang
 * @CreateDate: 2021/1/11 9:46
 * @Description: 描述
 */
public class MMessageWhat {

    public static final int WHAT_MTC_CONNECT = 100001;
    public static final int WHAT_MTC_HEART = 100002;
    public static final int WHAT_MTC_JSON = 100003;
    public static final int WHAT_MTC_ERROR = 100004;
    public static final int WHAT_MTC_CLOSE = 100005;

    public static final int WHAT_CTM_CONNECT = 110001;
    public static final int WHAT_CTM_HEART = 110002;
    public static final int WHAT_CTM_JSON = 110003;
    public static final int WHAT_CTM_ERROR = 110004;
    public static final int WHAT_CTM_CLOSE = 110005;


    @IntDef({WHAT_MTC_CONNECT, WHAT_MTC_HEART,
            WHAT_MTC_JSON, WHAT_MTC_ERROR,WHAT_MTC_CLOSE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface ServerToClientType {
    }

    @IntDef({WHAT_CTM_CONNECT, WHAT_CTM_HEART,
            WHAT_CTM_JSON, WHAT_CTM_ERROR,WHAT_CTM_CLOSE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface ClientToServerType {
    }


}
